<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/3
 * Time: 10:15
 * 添加回访记录
 */
//获取参数
$orr_type              = $route->bodyParams['orr_type'];            //回访方式 0电话 1微信/短信 2到店接待 3 其他
$orr_content           = $route->bodyParams['orr_content'];         //回访内容
$orr_stuid             = $route->bodyParams['orr_stuid'];           //学生id
$orr_uid               = $route->bodyParams['orr_uid'];             //回访人id
$orr_satisfaction      = $route->bodyParams['orr_satisfaction'];   //满意度  0 非常满意 1 很满意 2 一般满意 3 不满意
$create_time           = time();                                       //回访时间

//写入数组
$insertArr = [
    'orr_type'                => $orr_type,
    'orr_content'             => $orr_content,
    'orr_stuid'               => $orr_stuid,
    'orr_uid'                 => $orr_uid,
    'orr_satisfaction'       => $orr_satisfaction,
    'create_time'             => $create_time
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_return_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );